package Blog.Managerv6;

import java.awt.event.ActionEvent;

public class SignSuccess implements java.awt.event.ActionListener{

	private javax.swing.JTextField t1;
	private javax.swing.JTextField t2;
	private javax.swing.JFrame jf;
	private CreateBlogs cb=new CreateBlogs();
	
	public SignSuccess(javax.swing.JTextField t1,javax.swing.JTextField t2,javax.swing.JFrame jf){
		this.t1=t1;
		this.t2=t2;
		this.jf=jf;
	}
	public void actionPerformed(ActionEvent e) {
		
		cb.createUsers(t1.getText(),"");
		jf.setVisible(false);
	}
	public java.awt.event.ActionListener getLoginListener(){
		LoginListener lListener=new LoginListener(cb);
		return lListener;
	}

}
